<script lang="ts" setup>
import { ref } from 'vue';


let row_num =ref(0)
</script>


<template>
    <!-- 输入框里写几出来几个盒子 -->
    <div class="main">
        <input v-model="row_num" type="number"></input>
        <button>提交</button>
        <br/>
        <div v-for="value in row_num" class="div_row"></div>
    </div>
</template>

<style scoped>
.div_row{
height: 10px;
border: 1px red solid;
}
</style>